import {FormRuleUtil} from "@/utils";

// 场地管理
export const STAFF_EDIT = {
    BODY: {
        code: '',
        name: '',
        phone: '',
        password: '',
        status: '',
        sort: 0

    },
    RULES: {
        code: FormRuleUtil.strRule("海报代码", true, 30),
        name: FormRuleUtil.strRule("海报名称", true, 10),
        phone: FormRuleUtil.strRule("海报登录手机号", true, 10),
        password: FormRuleUtil.strRule("海报密码", true, 10),
        status: FormRuleUtil.strRule("海报状态", true, 10),
        sort: FormRuleUtil.numRule("显示排序", true, 0, 100),
    }
}


export const PROFILE_EDIT = {
    BODY: {
        code: '',
        name: '',
        price: 0,
        icon: '',
        kind: null,
        quantity: 0,
        sort: 0,
        dataCode: null,
        description: ''

    },
    RULES: {
        code: FormRuleUtil.strRule("礼包代码", true),
        name: FormRuleUtil.strRule("礼包名称", true, 10),
        description: FormRuleUtil.strRule("实物描述", true, 200),
        price: FormRuleUtil.numRule("售价金币", true, 0, 99999),
        icon: FormRuleUtil.strRule("礼包图标", true),
        dataCode: FormRuleUtil.arrayRule("道具档案", true),
        quantity: FormRuleUtil.strRule("剩余数量", true),
        kind: FormRuleUtil.strRule("礼包类型", true),
        sort: FormRuleUtil.numRule("显示排序", true, 0, 100),
    }
}



export const LINK_EDIT = {
    BODY: {
        description: "",
        remark: "",
        thumb: "",
        title: "",
        url: ""

    },
    RULES: {
        title: FormRuleUtil.strRule("链接标题", true, 80),
        description: FormRuleUtil.strRule("链接描述", true, 200),
        thumb: FormRuleUtil.strRule("缩略图", true, 0, 'url'),
        url: FormRuleUtil.strRule("链接地址", true, 0, 'url'),
        remark: FormRuleUtil.strRule("备注说明", true, 200),

    }
}